#ifndef __VOICECTL_H
#define __VOICECTL_H

// #define LED7 "/sys/kernel/gec_ctrl/led_d7"
#define LED8 "/sys/kernel/gec_ctrl/led_d8"
// #define LED9 "/sys/kernel/gec_ctrl/led_d9"
// #define LED10 "/sys/kernel/gec_ctrl/led_d10"

#define BEEP "/sys/kernel/gec_ctrl/beep"


#define START "madplay -Q /media/zw.mp3 &"
#define PAUSE "killall -STOP madplay"
#define CONT  "killall -CONT madplay"
#define END   "killall madplay"

// #define OPEN_LED 1     //灯开
// #define CLOSE_LED 2

// #define OPEN_BEEP 3    //蜂鸣器开
// #define CLOSE_BEEP 4

// #define OPEN_MUSIC 5   // 音乐开
// #define PAUSE_MUSIC 6   
// #define CLOSE_MUSIC 7

// #define OPEN_VEDIO 8   //视频开
// #define PAUSE_VEDIO 9
// #define CLOSE_VEDIO 10

// #define OPEN_PHOTO 11   //照片开
// #define CLOSE_PHOTO 12

// #define OPEN_CAMERA 13 //摄像头开
// #define CLOSE_CAMERA 14


void delay_ms(int time);

int led_beep_ctrl(char *filename,int state);
int music_ctrl(char *musicname);


//后台播放
void play_video_backstage(const char *filename);

// 暂停视频播放
void pause_video(void);

// 继续播放视频
void continue_video(void);

// 停止视频播放
void stop_video(void);


//滑动特效
int show_bmp_with_blinds(int x0, int y0, char *filename, int strip_width, int delay_us, int direction);



// extern int signals=-1;





#endif
